package com.guoxin.artconcurrency.chapter4;


/**
 * @author guoxin
 * @date 2019/7/24
 */
public class Synchronized {

    public static void main(String[] args) {
        // 对Synchronized Class对象进行加锁
        synchronized (Synchronized.class){

        }
        // 静态同步方法，对Synchronized Class对象进行加锁
        m();
    }
    public static synchronized void m(){
    }
}
